package com.dotc.patterndemo.entity.Fruitt;

import android.util.Log;

import com.dotc.patterndemo.action.visit.Visit;
import com.dotc.patterndemo.entity.Fruit;

public class Banana implements Fruit {
    private int price = 60;

    public Banana() {
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    @Override
    public int price() {
        return price;
    }

    @Override
    public void draw() {
        Log.d("LUO","仙人蕉");
    }

    @Override
    public int accept(Visit visit) {
        return visit.sell(this);
    }
}
